package ru.vsu.cs.pm.components.tree;

import ru.vsu.cs.pm.models.Item;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * User: ohodyakov
 * Date: 27.12.2010
 * Time: 12:42:40
 */
public class MutableTreeNode extends DefaultMutableTreeNode {

    public MutableTreeNode() {
        super();
    }

    public MutableTreeNode(Item itemObject) {
        super(itemObject);
    }

    @Override
    public boolean isLeaf() {
        return !getAllowsChildren();
    }
}
